% ============自定义专有名词命令============
\newcommand{\yh}{杨辉三角形}
\newcommand{\psc}{Pascal三角形}
\newcommand{\pscyh}{Pascal(杨辉)三角形}
\newcommand{\sie}{Siepinski三角形}
\newcommand{\siezh}{Siepinski(谢尔宾斯基)三角形}

\newcommand{\cl}{C语言}
\newcommand{\ccpp}{C/C++}
\newcommand{\win}{Windows}
\newcommand{\ide}{IDE}
\newcommand{\gcc}{GCC}
\newcommand{\gpp}{G++}
\newcommand{\gnu}{GNU}
\newcommand{\cb}{Code::Blocks}
\newcommand{\mgww}{MinGW}
\newcommand{\mgw}{MinGW32}
\newcommand{\mgwww}{MinGW-w64}
\newcommand{\unix}{UNIX}
\newcommand{\lumos}{Linux、\unix{}和Mac OS}
\newcommand{\lnx}{Linux}
\newcommand{\mk}{make}
\newcommand{\ph}{Path}
\newcommand{\cmdd}{cmd}
\newcommand{\gdb}{gdb调试器}
\newcommand{\vside}{Visual Studio}
\newcommand{\mkfile}{\enquote{Makefile}}
\newcommand{\tgt}{target}
\newcommand{\prqt}{prerequisites}
\newcommand{\cbv}{20.03}
\newcommand{\db}{DEBUG}
\newcommand{\dbger}{Debugger}
\newcommand{\cdb}{cdb调试器}
\newcommand{\gdbcmd}{(gdb)}
\newcommand{\bug}{BUG}
\newcommand{\ieee}{IEEE754标准}
\newcommand{\ascii}{ASCII}

\newcommand\vararg{变长形参列表}
\newcommand\varargfun{\vararg 函数}

% ============mint宏包C语言行内代码排版命令============
\newcommand{\scf}{scanf()}
\newcommand{\ptf}{printf()}
\newcommand{\rn}{\texttt{'\n'}}
\newcommand{\cin}[1]{\cinline|"|#1\cinline|"|}
\newcommand{\cesp}[1]{\verb!'!\textbackslash #1\verb!'!}
% ===================================================

%%%%%%%%%%% C语言专用名词 %%%%%%%%%%%%%%%
%\newcommand{\ch}{char}
\newcommand{\nint}{int}
\newcommand{\flt}{float}
\newcommand{\dbl}{double}
\newcommand{\snint}{short int}
\newcommand{\lint}{long int}
\newcommand{\llint}{long long int}
\newcommand{\ldb}{long double}

\newcommand{\sch}{signed char}
\newcommand{\sint}{signed int}
\newcommand{\ssint}{signed short int}
\newcommand{\slint}{signed long int}
\newcommand{\sllint}{signed long long int}

\newcommand{\usch}{unsigned char}
\newcommand{\usint}{unsigned int}
\newcommand{\ussint}{unsigned short int}
\newcommand{\uslint}{unsigned long int}
\newcommand{\usllint}{unsigned long long int}

\newcommand\PYZbs{\char`\\}
\newcommand\PYZus{\char`\_}
\newcommand\PYZob{\char`\{}
\newcommand\PYZcb{\char`\}}
\newcommand\PYZca{\char`\^}
\newcommand\PYZsh{\char`\#}
\newcommand\PYZpc{\char`\%}
\newcommand\PYZdl{\char`\$}
\newcommand\PYZti{\char`\~}
\newcommand\PYZsq{\char`\'}
% for compatibility with earlier versions
\newcommand\PYZat{@}
\newcommand\PYZlb{[}
\newcommand\PYZrb{]}

%%%%%%%%%%% MATHEMATICS数学专用名词命令 %%%%%%%%%%%%%%%
% 摘选自 Mikhail Klassen 的研究日记模板

% Command for use math quickly
\newcommand{\noteres}[1]{\begin{math}\Rightarrow\left\{\begin{matrix}#1\end{matrix}\right.\end{math}\hspace{0.2cm}} % result
\newcommand{\notesys}[1]{\begin{math}\left\{\begin{matrix}#1\end{matrix}\right.\end{math}} % system
\newcommand{\noteero}[1]{\begin{math}\xrightarrow{#1}\end{math}} % row operation
\newcommand{\notemat}[1]{\begin{math}\begin{bmatrix}#1\end{bmatrix}\end{math}} % matrix
\newcommand{\step}[1]{\begin{math}\xrightarrow{\text{#1}}\end{math}} % step in a process
\newcommand{\noteeq}[1]{\begin{equation}\notag#1\end{equation}}

\newcommand{\notertwo}{\begin{math}\text{R}^\text{2}\end{math}} %R^2
\newcommand{\noterthree}{\begin{math}\text{R}^\text{3}\end{math}} %R^3

\newcommand{\n}{\vskip 6pt \noindent}

% 数学环境的快捷命令
\newcommand{\be}{\begin{equation}}
\newcommand{\ee}{\end{equation}}
\newcommand{\bea}{\begin{eqnarray}}
\newcommand{\eea}{\end{eqnarray}}
\newcommand{\eqnarr}{\begin{eqnarray}}
\newcommand{\eqnend}{\end{eqnarray}}
\DeclareMathSymbol{\umu}{\mathalpha}{operators}{0}

\newcommand{\bigO}{\mathcal{O}}
\newcommand{\Z}{{\mathbb{Z}}}
\newcommand{\Q}{{\mathbb{Q}}}
\newcommand{\R}{{\mathbb{R}}}
%\newcommand{\C}{{\mathbb{C}}}
\newcommand{\N}{{\mathbb{N}}}
\newcommand{\wC}{{\textit{C}}}
\newcommand{\eps}{\epsilon}
\newcommand{\notdv}{\thinspace \not | \thickspace}
\newcommand{\union}{\cup}
\newcommand{\inter}{\cap}
\newcommand{\into}{\rightarrow}
\newcommand{\disc}{\operatorname{disc}}
\newcommand{\spn}{\operatorname{Span}}
%\newcommand{\rank}{\operatorname{rank}}
\newcommand{\proj}{\operatorname{proj}}
\newcommand{\prp}{\operatorname{perp}}
\newcommand{\ux}{\underline{x}}
\newcommand{\ua}{\underline{a}}
\newcommand{\uu}{\underline{u}}
\newcommand{\pfx}{\frac{\partial f}{\partial x}}
\newcommand{\pfy}{\frac{\partial f}{\partial y}}
\newcommand{\px}{\frac{\partial}{\partial x}}
\newcommand{\py}{\frac{\partial}{\partial y}}
\newcommand{\jacu}{\frac{\partial(u,v)}{\partial(x,y)}}
\newcommand{\jacx}{\frac{\partial(x,y)}{\partial(u,v)}}
\newcommand{\vzero}{\vec{0}}
\newcommand{\va}{\vec{a}}
\newcommand{\vb}{\vec{b}}
\newcommand{\vc}{\vec{c}}
\newcommand{\vd}{\vec{d}}
\newcommand{\ve}{\vec{e}}
\newcommand{\vh}{\vec{h}}
\newcommand{\vn}{\vec{n}}
\newcommand{\vs}{\vec{s}}
\newcommand{\vu}{\vec{u}}
\newcommand{\vv}{{\vec{v}}}
\newcommand{\vw}{\vec{w}}
\newcommand{\vx}{\vec{x}}
\newcommand{\vy}{\vec{y}}
\newcommand{\vz}{\vec{z}}

% Command for use \textsc quickly
\newcommand{\noun}[1]{\textsc{#1}}
\newcommand{\tc}[1]{\texttt{#1}}
\newcommand{\nset}[1]{#1_1,\ldots,#1_n}
\newcommand{\bnset}[1]{\{#1_1,\ldots,#1_n\}}
\newcommand{\ton}[1]{#1=1,\ldots,n}
%\newcommand{\pxn}[1]{\frac{\partial f}{\partial x_{#1}}}
\newcommand{\ub}[1]{\underbrace{#1}}
\newcommand{\lgn}[1]{\log_2^{#1}}
\newcommand{\lgtn}[1]{\log_{10}^{#1}}
\newcommand{\lgen}[1]{\log_e^{#1}}
\newcommand{\lnn}[1]{\ln^{#1}}
\newcommand{\lgg}[1]{\lg^{#1}}

\newcommand{\tok}[2]{#1=1,\ldots,#2}
\newcommand{\ubt}[2]{\underbrace{\mbox{#1}}_{\mbox{#2}}}
\newcommand{\comb}[2]{{#1 \choose #2}}
\newcommand{\sip}[2]{\langle #1 , #2 \rangle}
\newcommand{\f}[2]{\frac{#1}{#2}}
\newcommand{\bset}[2]{\{#1_1,\ldots,#1_{#2}\}}
\newcommand{\setk}[2]{#1_1,\ldots,#1_{#2}}
\newcommand{\deriv}[2]{\frac{d #1}{d #2}}
\newcommand{\memaddr}[2]{0X#1#2}

\newcommand{\piecewise}[4]{\left\{
     \begin{array}{lr}
       #1 & \mbox{#2} \\ #3 & \mbox{#4}
     \end{array}
   \right.}

% ===============数学符号自定义命令====================
% 微分符号dx中的直立体的d
\DeclareMathOperator\dif{d\!}
% ===================================================

%%% Local Variables:
%%% mode: latex
%%% TeX-master:"../main.tex"
%%% End:
